aboutsummaryrefslogtreecommitdiff
path: root/src/pages/board/[board]
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-24 23:19:33 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-24 23:19:33 +0300
commit9dfd6aa77518b3a1e6bfd926a3b7719c32a8c97f (patch)
treed10fc76ef816160871e3955aa75821bc5d5088d4 /src/pages/board/[board]
parent4ca81621e5b31922565b4149ebad1deb5161071a (diff)
use the new api
Diffstat (limited to 'src/pages/board/[board]')
-rw-r--r--src/pages/board/[board]/[tid].astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/board/[board]/[tid].astro b/src/pages/board/[board]/[tid].astro
index e9b345a..fa2f104 100644
--- a/src/pages/board/[board]/[tid].astro
+++ b/src/pages/board/[board]/[tid].astro
@@ -10,12 +10,12 @@ import { api } from '../../../lib/api';
import { processThreadIn } from '../../../lib/thread';
const { board, tid } = Astro.params;
-const data = await api('get', `thread/${board}/${tid}`);
+const data = await api('get', `board/${board}/${tid}`);
if(data.status === 404) return Astro.redirect('/404');
const thread: Thread = await data.json();
-await processThreadIn(board, thread, true);
+processThreadIn(board, thread);
---
<ThreadLayout>